Expressing and Supporting Efficiently Greedy Algorithms as Locally Stratified Logic Programs
نویسنده
چکیده
The problem of expressing and supporting classical greedy algorithms in Datalog has been the focus of many signi cant research e orts that have produced very interesting solutions for particular algorithms. But we still lack a general treatment that characterizes the relationship of greedy algorithms to non-monotonic theories and leads to asymptotically optimal implementations. In this paper, we propose a general solution to this problem. Our approach begins by identifying a class of locally strati ed programs that subsumes XY-strati ed programs and is formally characterized using the Datalog1S representation of numbers. Then, we propose a simple specialization of the iterated xpoint procedure that computes e ciently the perfect model for these programs, achieving optimal asymptotic complexities for well-known greedy algorithms.This makes possible their e cient support in Datalog systems.
منابع مشابه
Greedy Algorithms in Datalog
In the design of algorithms, the greedy paradigm provides a powerful tool for solving efficiently classical computational problems, within the framework of procedural languages. However, expressing these algorithms within the declarative framework of logic-based languages has proven a difficult research challenge. In this paper, we extend the framework of Datalog-like languages to obtain simple...
متن کاملGreedy Algorithms in Datalog with Choice and Negation
In the design of algorithms, the greedy paradigm provides a powerful tool for solving eeciently classical computational problems, within the framework of procedural languages. However, expressing these algorithms within the declarative framework of logic-based languages has proven a diicult research challenge. In this paper, we extend the framework of Datalog-like languages to obtain simple dec...
متن کاملHeuristic Based Induction of Answer Set Programs: From Default theories to combinatorial problems
Significant research has been conducted in recent years to extend Inductive Logic Programming (ILP) methods to induce Answer Set Programs (ASP). These methods perform an exhaustive search for the correct hypothesis by encoding an ILP problem instance as an ASP program. Exhaustive search, however, results in loss of scalability. In addition, the language bias employed in these methods is overly ...
متن کاملTransformation Rules for Locally Stratified Constraint Logic Programs
We propose a set of transformation rules for constraint logic programs with negation. We assume that every program is locally stratified and, thus, it has a unique perfect model. We give sufficient conditions which ensure that the proposed set of transformation rules preserves the perfect model of the programs. Our rules extend in some respects the rules for logic programs and constraint logic ...
متن کاملOn the Impact of Stratification on the Complexity of Nonmonotonic Reasoning
This paper investigates the problem of finding subclasses of nonmonotonic reasoning which can be implemented efficiently. The ability to “define” propositions using default assumptions about the same propositions is identified as a major source of computational complexity in nonmonotonic reasoning. If such constructs are not allowed, i.e. stratified knowledge bases are considered, a significant...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2015